package eu.tolu.cableSpotter;

import java.io.IOException;
import java.util.ArrayList;

import eu.tolu.cableSpotter.help.AppPreferences;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class FindLocalCable extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.find_local_cable);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_find_local_cable, menu);
		return true;
	}

    public void findCableButton(final View view) {
    	String cableCount = ((EditText) findViewById(R.id.et_findlocalcable_count)).getText().toString();
    	
    	
		Intent intent = new Intent(this, GmapLocalView.class);

				intent.putExtra("cableCount", cableCount);

		startActivity(intent);
    }
}
